package com.seelyn.ddvideo.event;

import com.seelyn.ddvideo.spider.FromSiteEnum;
import com.seelyn.ddvideo.spider.MovieTypeEnum;
import com.seelyn.ddvideo.spider.PageTypeEnum;
import org.springframework.context.ApplicationEvent;

/**
 * @author ifcousing-linfeng
 * @since 2017/6/16
 */
public class ParseErrorEvent extends ApplicationEvent {

    private final FromSiteEnum fromSite;
    private final MovieTypeEnum movieType;
    private final PageTypeEnum pageType;

    public ParseErrorEvent(Object source, FromSiteEnum fromSite, MovieTypeEnum movieType, PageTypeEnum pageType) {
        super(source);
        this.fromSite = fromSite;
        this.movieType = movieType;
        this.pageType = pageType;
    }

    public FromSiteEnum getFromSite() {
        return fromSite;
    }

    public MovieTypeEnum getMovieType() {
        return movieType;
    }

    public PageTypeEnum getPageType() {
        return pageType;
    }
}
